package com.yidu.sanrenxing.homedata.service.impl;

import com.yidu.sanrenxing.homedata.dao.ImageMapper;
import com.yidu.sanrenxing.homedata.domain.Image;
import com.yidu.sanrenxing.homedata.service.ImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImageServiceImpl implements ImageService {
    @Autowired
    ImageMapper imageMapper;
    @Override
    public Image selectByPrimaryKey(int imgid) {
        return imageMapper.selectByPrimaryKey(imgid);
    }

    @Override
    public List<Image> selectAll() {
        return imageMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(int imgid) {
        return imageMapper.deleteByPrimaryKey(imgid);
    }

    @Override
    public int insert(Image record) {
        return imageMapper.insert(record);
    }

    @Override
    public int insertSelective(Image record) {
        return imageMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(Image record) {
        return imageMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Image record) {
        return imageMapper.updateByPrimaryKey(record);
    }
}
